﻿using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit.Abstractions;

namespace EFCoreDemo.XUnitTest.LoggerHelper
{
    public class XUnitToEFCoreLoggerProvider : ILoggerProvider
    {
        private readonly ITestOutputHelper output;
        public XUnitToEFCoreLoggerProvider(ITestOutputHelper output)
        {
            this.output = output;
        }
        public ILogger CreateLogger(string categoryName) => new XUnitToFECoreLogger(categoryName, output);
        public void Dispose() { }
    }
}
